package com.copm.ifm.common.process.define.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.copm.ifm.base.api.pojo.BasePO;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

/**
 * 流程运行表
 *
 * @author zzf
 * @since 2019-04-11
 */
@Getter
@Setter
@TableName("pub_process_run")
@ApiModel(value = "PubProcessRun对象", description = "流程运行表")
public class ProcessExecute extends BasePO {


    @ApiModelProperty(value = "主键ID")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty("流程id")
    private Integer processId;

    @ApiModelProperty("发起人id")
    private Integer runUserId;

    @ApiModelProperty("涉及到的表对象名")
    private String targetName;

    @ApiModelProperty("对象数据id")
    private Integer targetId;

    @ApiModelProperty("当前运行的节点 用二进制数字表示 如：10000 表示总共5个节点，目前在第一个节点")
    private String runPoint;

    @ApiModelProperty("流程状态 1：流程中 2：已驳回 3：已完成 4：已撤回")
    private Integer runStatus;

}
